Method: BigDecimal#>=

Defined in:
bigdecimal.c

#>=(other) ⇒ Boolean

Returns true if self is greater than or equal to other, false otherwise:

b = BigDecimal('1.5')
b >= 1              # => true
b >= 1.0            # => true
b >= Rational(1, 1) # => true
b >= 1.5            # => true
b > 2               # => false

Raises an exception if the comparison cannot be made.

Returns:

  • (Boolean)


1754
1755
1756
1757
1758
# File 'bigdecimal.c', line 1754

static VALUE
BigDecimal_ge(VALUE self, VALUE r)
{
    return BigDecimalCmp(self, r, 'G');
}